
module.exports = app => {
  const { router, controller } = app;
  router.get('/getList', controller.home.getList);

  router.post('/addList', controller.home.addList);

  router.put('/editList', controller.home.editList);

  router.delete('/delete/:id', controller.home.delete);
   //登录
   router.post('/login', controller.home.login);
   //注册
   router.post('/regisert', controller.home.regisert);
};
